/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
//  返利池管理（OEM）

// 查询列表 /ttFiRebate/queryList ${SERVER.WHOLESALES}
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebate/queryList`, params)

// 全部冻结 /ttFiRebate/frostAll
export const frostAll = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateSubprojectsAccount/frostAll`, params)

// 修改冻结金额 POST /ttFiRebate/updateFrostAmount
export const updateFrostAmount = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateSubprojectsAccount/updateFrostAmount`, params)

//  获取预扣金额 GET /ttFiRebate/queryFrozenList
export const queryFrozenList = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiRebate/queryFrozenList`, {
  params
})

// 导出	 /ttFiRebate/export
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebate/export`, params, {
  responseType: 'blob'
})

// 导出	 返利池管理 /ttFiRebate/export
export const certificatePostImportFromExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebate/certificatePostImportFromExcel`, params, {
  responseType: 'blob'
})
